<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.project_name}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>项目阶段:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[project_stage_id]',$Think.config.app.project_status,$row.project_stage_id,['id'=>"project_stage_id",'class'=>'form-control','data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input name="row[project_stage_time]" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" type="text" required value="{$row.project_stage_time_text}">
        </div>
    </div>
    <div class="form-group register_capital" {if $row.project_stage_id neq 6} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>注册资本(万元):</label>
        <div class="col-xs-12 col-sm-8">
           <input name="row[register_capital]" class="form-control" type="text" value="{$row.register_capital}" required>
        </div>
    </div>
    <div class="form-group register_name" {if $row.project_stage_id neq 6} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>注册名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input name="row[register_name]" class="form-control" type="text" value="{$row.register_name}" required>
        </div>
    </div>
    <div class="form-group reason" {if $row.project_stage_id neq 9 and $row.project_stage_id neq 10} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2"><span class="text-red">*</span>原因:</label>
        <div class="col-xs-12 col-sm-8">
            <input name="row[reason]" class="form-control reason_res" {if $row.project_stage_id eq 9 or $row.project_stage_id eq 10} required {/if} type="text" value="{$row.reason}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input name="row[memo]" class="form-control" type="text" value="{$row.memo}" placeholder="选填">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-success btn-update">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<style type="text/css">
    .error{color: red}
</style>